< previous page page_551 next page >

Page 551
The bound controls are not limited, however, to just displaying the information in the record. Most can also be used to modify the information. To do so, the users just need to edit the contents of the control. Then, when the current record is changed or the form is closed, the information in the database is automatically updated to reflect the changed values.
note.gif Because the Label control has no editable portion, the data displayed in the Label cannot be changed. Also, if a control is locked, or editing is otherwise prevented, the users cannot change the information. square.gif

You use each of the basic bound controls to edit and/or display different types of data. With the bound controls, you can handle strings, numbers, dates, logical values, and even pictures and memos. Table 25.1 lists the five basic bound controls and the types of database fields that they can handle. The table also lists the property of the control that contains the data.
Table 25.1 Controls Used to Handle Different Types of Data
Control NameData TypeControl Property
LabelText, Numeric, DateCaption
TextBoxText, Memo, Numeric, DateText
CheckBoxLogical, True/FalseValue
PictureBoxLong BinaryPicture
ImageLong BinaryPicture

Adding Controls to Your Forms
To add a bound control to your form, select the control from the Toolbox and draw it on the form. Figure 25.5 shows a text box added to the form that contains the Data control. Note that the Data control's Caption property has been modified as well.
0551-01.jpg
Figure 25.5
You draw bound controls on your form
just as you draw any other control.
tip.gif
If you hold down the Ctrl key when you click a control in the Toolbox, you can add multiple controls of that type to your form. This way, you don't have to click the control's Toolbox button repeatedly. When you're done, click the mouse pointer button in the Toolbox.

 
< previous page page_551 next page >